package com.i2863.receiptinterface.mapper;

import com.i2863.receiptinterface.entity.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Activity record);

    Activity selectByPrimaryKey(Integer id);

    List<Activity> selectAll();

    int updateByPrimaryKey(Activity record);

    List<Activity> findOneByNow(@Param("siteId")Integer siteId);

    List<Integer> findByStatusAndSiteAndTime(@Param("activityStatus")Integer activityStatus, @Param("siteId")Integer siteId);

    List<Integer> listEndActivity(@Param("siteId")Integer siteId);

}